<?php
echo $this->Form->create('FieldType');
echo $this->Form->input('name', array('label'=>'Nazwa'));
echo $this->Form->end('Dodaj');
?>
<table>
	<tr>
		<th><?php echo $this->Paginator->sort('id', 'Id'); ?></th>
		<th><?php echo $this->Paginator->sort('name', 'Nazwa'); ?></th>
		<th>Akcje</th>
	</tr>
	<?php foreach($fieldTypes as $fieldType): ?>
	<tr>
		<td><?php echo $fieldType['FieldType']['id']; ?> </td>
		<td><?php echo $fieldType['FieldType']['name']; ?> </td>
		<td class="actions">
			<?php echo $this->Html->link('Edytuj', array('action' => 'editType', $fieldType['FieldType']['id'])); ?>
		</td>
	</tr>
	<?php endforeach; ?>
</table>
<?php echo $this->Paginator->numbers(array('first'=>3,'last' => 3)); ?>